<div id="loginFormContainer" class="loginFormContainer">
	<div class="facebookArea">
		<h3>¿Tenés Facebook?</h3>
		<div class="facebookLogin"></div>
	</div>
	<div class="response"></div>
	<form action="<?php echo $this->escape($this->loginForm->getAction()) ?>" method="<?= $this->escape($this->loginForm->getMethod()) ?>" id="<?= $this->escape($this->loginForm->getName()) ?>">
		<div class="zend_form">
			<?= $this->loginForm->email ?>
		    <?= $this->loginForm->password ?>
			<div class="submit-group">
				<span class="button redButton"><span>Iniciar Sesión</span></span>
			</div>
		</div>
	</form>
	<div class="links">
		<a href="#" class="forgotTrigger" rel="nofollow, noindex" >¿Olvidaste tu clave?</a>
		|
		<a href="<?php echo $this->url(array('controller'=>'user', 'action'=>'register'))?>" class="registerTrigger">Crear cuenta</a>
	</div>
</div>
<div id="forgotFormContainer" class="forgotFormContainer">
	<div class="facebookArea">
		<h3>¿Tenés Facebook?</h3>
		<div class="facebookLogin"></div>
	</div>
	<div class="response"></div>
	<form action="<?php echo $this->escape($this->forgotForm->getAction()) ?>"
      method="<?= $this->escape($this->forgotForm->getMethod()) ?>"
      id="<?= $this->escape($this->forgotForm->getName()) ?>">

		<div class="zend_form">
			<?= $this->forgotForm->email ?>
			<div class="submit-group">
				<span class="button redButton"><span>Enviar Instrucciones</span></span>
			</div>
		</div>
	</form>
	<div class="links">
		<a href="#" class="loginTrigger" rel="nofollow, noindex">Iniciar Sessión</a>
		|
		<a href="<?php echo $this->url(array('controller'=>'user', 'action'=>'register'))?>" class="registerTrigger">Crear cuenta</a>
	</div>
</div>
<?php 
$this->jQuery()->javascriptCaptureStart();
?>

$fbHtml = '<fb:login-button autologoutlink="false" size="medium" scope="status_update,publish_stream,email" onlogin="document.location = \'/facebook/login\';"><?php echo $this->translate('login')?></fb:login-button>';

$("#facebookLogin, #loginFormContainer .facebookLogin, #forgotFormContainer .facebookLogin").html( $fbHtml );
<?php 
$this->jQuery()->javascriptCaptureEnd();

$this->jQuery()->onLoadCaptureStart();
?>

bindLoginTrigger( null );

//initFbLogin( '<?php echo $this->facebookAppId?>', '<?php echo $this->facebookLang?>');


<?php
if ( isset($this->session->loginTrigger) && $this->session->loginTrigger):
?>
	$("#userBar .loginTrigger").trigger("click");
<?php 
    unset( $this->session->loginTrigger );

endif;
?>
<?php
$this->jQuery()->onLoadCaptureEnd();















